package com.lancoo.znbkxx.teacher.service

import com.lancoo.znbkxx.teacher.base.BaseResponse
import com.lancoo.znbkxx.teacher.model.data.ZnbkResponse
import paperToChaKanChengJi.data.CheckScoreInfo
import paperToChaKanChengJi.data.PaperAnalysisInfo
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author : Admin
 * @date   : 2019/7/24 9:03
 * @desc   :
 */
interface CheckScoreService {

    /*
     * 查看成绩获取试卷分析
     * */
    @GET("W_ZNBK_GetPaperDetail")
    suspend fun getPaperDetail(@Query("Token") Token: String,
                               @Query("SchoolId") SchoolID: String,
                               @Query("CourseClassID") CourseClassID: String,
                               @Query("GlobalGrade") GlobalGrade: String,
                               @Query("PaperID") PaperID: String,
                               @Query("Layer") Layer: Int,
                               @Query("UserID") UserID: String,
                               @Query("Key") Key: String): ZnbkResponse<CheckScoreInfo>

    /**
     * 获取试卷分析数据
     */
    @GET("/api/Achievement/GetPaperAnalysis")
    suspend fun getPaperAnalysis(@Query("UserID") UserID: String,
                                 @Query("Token") Token: String,
                                 @Query("SetID") SetID: String,
                                 @Query("PaperID") PaperID: String,
                                 @Query("SchoolID") SchoolID: String,
                                 @Query("CourseClassID") CourseClassID: String): ZnbkResponse<PaperAnalysisInfo>

    /*
    * 导出试卷
    * */
    @GET("W_ZNBK_GetExportCommentPath")
    suspend fun getExportCommentPath(@Query("templetID") templetID: String,
                                     @Query("setName") setName: String,
                                     @Query("paperName") paperName: String,
                                     @Query("schoolId") schoolId: String,
                                     @Query("tid") tid: String,
                                     @Query("courseClassId") courseClassId: String,
                                     @Query("globalGrade") globalGrade: String,
                                     @Query("paperId") paperId: String,
                                     @Query("setId") setId: String,
                                     @Query("subjectId") subjectId: String,
                                     @Query("layer") layer: Int,
                                     @Query("answerAnalysis") answerAnalysis: Int,
                                     @Query("zsd") zsd: Int,
                                     @Query("listenVideo") listenVideo: Int,
                                     @Query("listenText") listenText: Int): BaseResponse<String>

//    @GET("W_ZNBK_GetExportPaperScorePath")
    @GET("Paper/ExportPaperScore")
    suspend fun getExportPaperScorePath(@Query("token") token: String,
                                        @Query("schoolId") schoolId: String,
                                        @Query("paperId") paperId: String,
                                        @Query("courseClassId") courseClassId: String,
                                        @Query("globalGrade") globalGrade: String,
                                        @Query("layer") layer: Int,
                                        @Query("courseClassName") courseClassName: String,
                                        @Query("key") key: String,
                                        @Query("userId") userId: String): BaseResponse<String>

    @GET("api/RZZD/IsOpenClassRZZD_App")
    suspend fun openClassRZZD(@Query("SchoolID") SchoolID: String, @Query("CourseClassID") CourseClassID: String): ZnbkResponse<Boolean>

}